﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ChangePass.ascx.cs" Inherits="Admin_ChangePass" %>
<style type="text/css">
    .style1
    {
        width: 130px;
    }
    .style2
    {
        width: 140px;
    }
</style>
<div class="wraptitle">
    <h1>Change Pass</h1>
</div>
<div class="wrapcontent">
<center>
    <table style="width: 500px;">
        <tr>
            <td class="style1">
                Old Pass:
            </td>
            <td class="style2">
                <asp:TextBox ID="txtOldPass" runat="server" TextMode="Password"></asp:TextBox>
            </td>
           <td>
               <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="* Old is not empty" Display="Dynamic" ControlToValidate="txtOldPass"></asp:RequiredFieldValidator>
               <asp:Label ID="lblError" runat="server" Text="* Invalid password" Visible="false" ForeColor="Red"></asp:Label>
               </td>
        </tr>
        <tr>
            <td class="style1">
                New Pass:
            </td>
            <td class="style2">
                <asp:TextBox ID="txtNewPass" runat="server" TextMode="Password"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="* New Pass is not empty" Display="Dynamic" ControlToValidate="txtNewPass"></asp:RequiredFieldValidator>
                
           </td>
        </tr>
        <tr>
            <td class="style1">
               Re-Enter new Pass:
            </td>
            <td class="style2">
                <asp:TextBox ID="txtRepass" runat="server" TextMode="Password"></asp:TextBox>
            </td>
            <td>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*Re-Enter New Pass is not empty" Display="Dynamic" ControlToValidate="txtRepass"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="* Re-Enter Password must be same password" ControlToValidate="txtRepass" ControlToCompare="txtNewPass" Display="Dynamic"></asp:CompareValidator>
           </td>
        </tr>
        <tr>
            <td class="style1">
               
            </td>
            <td class="style2">
                <asp:Button ID="btnOk" runat="server" Text="Save" onclick="btnOk_Click" />
                <input id="Button1" type="reset" value="Cancel" />
            </td>
        </tr>
    </table>
    </center>
</div>